import request from '@/utils/request'

/**
 * 查询工务追踪列表
 */
export function queryList(query) {
  return request({
    url: '/api/admin/projectProgress/queryList',
    method: 'get',
    params: query
  })
}

/**
 * 查询工务追踪详情
 */
export function queryDetail(query) {
  return request({
    url: '/api/admin/projectProgress/queryDetail',
    method: 'get',
    params: query
  })
}

/**
 * 保存工务追踪详情
 */
export function saveDetail(list) {
  return request({
    url: '/api/admin/projectProgress/save',
    method: 'post',
    data: list
  })
}


/**
 * 查询工程类评鉴
 */
export function queryEpcAppraise(query) {
  return request({
    url: '/api/admin/projectProgress/queryEpcAppraise',
    method: 'get',
    params: query
  })
}

/**
 * 保存工程类评鉴
 */
export function saveEpcAppraise(list) {
  return request({
    url: '/api/admin/projectProgress/saveEpcAppraise',
    method: 'post',
    data: list
  })
}

/**
 * 查询零件工程耗材评鉴
 */
export function queryConsumableAppraise(query) {
  return request({
    url: '/api/admin/projectProgress/queryConsumableAppraise',
    method: 'get',
    params: query
  })
}

/**
 * 保存零件工程耗材评鉴
 */
export function saveConsumableAppraise(query) {
  return request({
    url: '/api/admin/projectProgress/saveConsumableAppraise',
    method: 'post',
    data: query
  })
}

/**
 * 保存零件工程耗材评鉴
 */
export function getProjectNumByProjectVendorId(query) {
  return request({
    url: '/api/admin/projectProgress/getProjectNumByProjectVendorId',
    method: 'get',
    params: query
  })
}
